import { add, show, selList, selById } from '@/services/summaryfAnnualReportApi';
export default {
    namespace: 'summaryfAnnualReport',

    state: {

    },

    effects: {

        /**
      * 添加
      * @param payload
      * @param call
      * @param put
      * @returns {Generator<*, *, *>}
      */
        *add({ payload }, { call, put }) {
            const response = yield call(add, payload);
            return response;
        },
        /**
    * 展示
    * @param payload
    * @param call
    * @param put
    * @returns {Generator<*, *, *>}
    */
        *show({ payload }, { call, put }) {
            const response = yield call(show, payload);
            return response;
        },

        /**
       * 分页
       * @param payload
       * @param call
       * @param put
       * @returns {Generator<*, *, *>}
       */
        *selList({ payload }, { call, put }) {
            const response = yield call(selList, payload);
            return response;
        },



        /**
        * 详情
        * */
        *selById({ payload }, { call, put }) {
            const response = yield call(selById, payload);
            return response;
        },

    },

    reducers: {

    },
};
